package lab01;

public class Test04 {
    public static void main(String[] args) {
       /*int i,n=1,sum=0;
       for(i=1;i<=10;i++){
           sum=sum+i;
           System.out.println(sum);
       }*/
      int i=1,sum=0;
       while(i<=10){
           sum=sum+i;
           i++;
       }
        System.out.println(sum);
      /*int i=1,sum=0;
      do{
          sum=sum+i;
          i++;
      }while(i<=10);
        System.out.println(sum);*/
    }
}
